import request from "@/utils/request";

export function pageRequest(data) {
  return request({
    url: '/shop/page',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/shop/save',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/shop/update',
    method: 'post',
    data
  })
}

export function remove(data) {
  return request({
    url: '/shop/delete',
    method: 'delete',
    data
  })
}

export function shopCount() {
  return request({
    url: '/shop/count',
    method: 'get'
  })
}


export function getHotTags(params) {
  return request({
    url: '/shop/getHotTags',
    method: 'get',
    params:params
  })
}

export function getShopDetailById(params) {
  return request({
    url: '/shop/getShopDetailById',
    method: 'get',
    params:params
  })
}
